package com.lanhai.longheng.third;

import com.lanhai.longheng.interfaces.IDeviceProtocol;

public class DeviceFactory {
	
	
	
	public static IDeviceProtocol getDevice(String cmd) {
		if(cmd.equals("KS")) {
			return new KuoSan();
		}else if(cmd.equals("ZRX")) {
			return new ZhiRongXia();
		}else if(cmd.equals("QY")) {
			return new QianYang();
		}else if(cmd.equals("PSG")) {
			return new PSG();
		}else if(cmd.equals("SE")) {
			return new SE();
		}else if(cmd.equals("ZRS")) {
			return new ZhiRongShang();
		}
		return null;
	}
}
